package se.sics.drsm.inits;

import se.sics.kompics.Init;

/**
 * Created with IntelliJ IDEA.
 * User: Shadid Chowdhury
 */
public final class ChordInit extends Init {

    private final int log2RingSize;
    private final int successorListLength;
    private final long stabilizationPeriod;
    private final long fingerStabilizationPeriod;
    private final long rpcTimeout;

    public ChordInit(int log2RingSize, int successorListLength,
                     long stabilizationPeriod, long fingerStabilizationPeriod,
                     long rpcTimeout) {
        super();
        this.log2RingSize = log2RingSize;
        this.successorListLength = successorListLength;
        this.stabilizationPeriod = stabilizationPeriod;
        this.fingerStabilizationPeriod = fingerStabilizationPeriod;
        this.rpcTimeout = rpcTimeout;
    }

    public int getLog2RingSize() {
        return log2RingSize;
    }

    public int getSuccessorListLength() {
        return successorListLength;
    }

    public long getStabilizationPeriod() {
        return stabilizationPeriod;
    }

    public long getFingerStabilizationPeriod() {
        return fingerStabilizationPeriod;
    }

    public long getRpcTimeout() {
        return rpcTimeout;
    }

}